import request from '@/utils/request'

// 查询外包商字典列表
export function outsourcers(query) {
  return request({
    url: '/dict/outsourcers/list',
    method: 'get',
    params: query
  })
}

// 新增外包商字典
export function outsourcersAdd(data) {
  return request({
    url: '/dict/outsourcers',
    method: 'post',
    data: data
  })
}

// 查询外包商字典单条详情
export function outsourcersEdit(params) {
  return request({
    url: '/dict/outsourcers/'+params,
    method: 'get',
  })
}

// 修改外包商字典信息
export function outsourcersUpdate(data) {
  return request({
    url: '/dict/outsourcers',
    method: 'put',
    data: data
  })
}

// 删除外包商字典数据
export function outsourcersDel(id) {
  return request({
    url: '/dict/outsourcers/' + id,
    method: 'delete'
  })
}

// 导出外包商字典列表
export function outsourcersExport(params) {
  return request({
    url: '/dict/outsourcers/export',
    method: 'get',
  })
}